﻿<Window x:Class="Copy4Backup.ExecuteWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Copying files" Height="300" Width="508" ShowInTaskbar="True" Loaded="Window_Loaded" 
        Icon="/Copy4Backup;component/Copy4Backup.ico" Closing="Window_Closing"
        WindowStartupLocation="CenterOwner">
    
    <Window.Resources>
        <Style TargetType="{x:Type Button}">
            <Setter Property="Margin" Value="5"/>
            <Setter Property="Width" Value="60"/>
        </Style>

        <Style TargetType="{x:Type TextBlock}">
            <Setter Property="Margin" Value="5"/>
        </Style>

        <Style TargetType="{x:Type ComboBox}">
            <Setter Property="Margin" Value="5"/>
        </Style>

        <Style TargetType="{x:Type Label}">
            <Setter Property="Margin" Value="5"/>
        </Style>

        <Style TargetType="{x:Type ProgressBar}">
            <Setter Property="Margin" Value="5"/>
        </Style>
    </Window.Resources>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>

        <Grid Grid.Row="0">
            <Grid.RowDefinitions>
                <!-- Project name -->
                <RowDefinition Height="auto"/>
                <!-- Max disk size -->
                <RowDefinition Height="auto"/>
                <!-- Disk number -->
                <RowDefinition Height="auto"/>
                <!-- File -->
                <RowDefinition Height="auto"/>
                <!-- Total disk size -->
                <RowDefinition Height="auto"/>
                <!-- Disk usage-->
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            
            <Grid.ColumnDefinitions>
                <!-- Parameter name -->
                <ColumnDefinition Width="auto"/>
                <!-- Parameter value -->
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>

            <!-- Project name -->
            <TextBlock Grid.Row="0" Grid.Column="0">Project</TextBlock>
            <TextBlock Grid.Row="0" Grid.Column="1" Name="textBlockProjectName">Project name</TextBlock>

            <!-- Max disk size -->
            <TextBlock Grid.Row="1" Grid.Column="0">Max size</TextBlock>
            <ComboBox Grid.Row="1" Grid.Column="1" Name="comboBoxMaxSize" HorizontalAlignment="Left">
                <ComboBoxItem Tag="650">650MB</ComboBoxItem>
                <ComboBoxItem Tag="4400" IsSelected="True">4.4GB</ComboBoxItem>
            </ComboBox>

            <!-- Disk number -->
            <TextBlock Grid.Row="2" Grid.Column="0">Disk</TextBlock>
            <TextBlock Grid.Row="2" Grid.Column="1" Name="textBlockDiskNumber">1</TextBlock>
            
            <!-- File -->
            <TextBlock Grid.Row="3" Grid.Column="0">File</TextBlock>
            <TextBlock Grid.Row="3" Grid.Column="1" Name="textBlockFileName">c:\photo\abc\ttt.txt</TextBlock>

            <!-- Total disk size -->
            <TextBlock Grid.Row="4" Grid.Column="0">Total disk size</TextBlock>
            <TextBlock Grid.Row="4" Grid.Column="1" Name="textBlockTotalDiskSize">1,123,456</TextBlock>
            
            <!-- Disk usage-->
            <TextBlock Grid.Row="5" Grid.Column="0">Disk usage</TextBlock>
            <ProgressBar Grid.Row="5" Grid.Column="1" Name="progressBarDiskUsage"/>
        </Grid>
        
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Name="buttonStart" IsDefault="True" Click="buttonStart_Click">Start</Button>
            <Button Name="buttonStop" IsEnabled="False" Click="buttonStop_Click">Stop</Button>
            <Button Name="buttonCancel" IsCancel="True">Cancel</Button>
        </StackPanel>
        
        <StatusBar Grid.Row="2" VerticalAlignment="Bottom">
            <Label Name="labelStatus"/>
        </StatusBar>
    </Grid>
    
</Window>
